package com.mallplus.rbac.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 菜单管理VO
 *
 * @author Hanson
 * @date 2023/4/15 19:26
 */
@Data
public class MenuSimpleVO {
    private static final long serialVersionUID = 1l;

    @Schema(description = "菜单id")
    private Long menuId;

    @Schema(description = "父菜单ID，一级菜单为0")
    private Long parentId;

    @Schema(description = "设置该路由在侧边栏和面包屑中展示的名字")
    private String title;

    @Schema(description = "菜单权限列表")
    private List<MenuPermissionSimpleVO> menuPermissions;

    @Override
    public String toString() {
        return "MenuSimpleVO{" +
                "menuId=" + menuId +
                ", parentId=" + parentId +
                ", title=" + title + '\'' +
                ", menuPermissions=" + menuPermissions +
                "}";
    }
}
